package pattern.decorator.passport;

import pattern.decorator.passport.old.SignService;
import pattern.decorator.passport.upgrade.ISignForThirdService;
import pattern.decorator.passport.upgrade.SignForThirdService;

/**
 * @author juxiaojun
 * @since 2019-05-12
 */
public class DecoratorTest {
    public static void main(String[] args) {
        //满足一个is-a
        ISignForThirdService siginForThirdService = new SignForThirdService(new SignService());
        siginForThirdService.loginForQQ("sdfasfdasfsf");

    }
}
